{% extends "base.html" %}
{% block title %}{{ _('Signin') }}{% endblock %}
{% block css %}
<link href="{{ url_for('static', filename='css/signin.css') }}" rel="stylesheet">
{% endblock %}
{% block body %}
    <div class="container">
        <form name="loginForm" class="form-signin" method="post" ng-submit="login($event)" role="form" ng-controller="loginCtrl">
            <h2 class="form-signin-heading">{{ _('Please sign in') }}</h2>
            <input type="text" name="name" class="form-control" placeholder="{{ _('User Name') }}" required  autofocus
                    ng-model="loginInfo.name" >
            <input type="password" name="pwd" class="form-control" placeholder="{{ _('Password') }}" required
                    ng-model="loginInfo.pwd">
            <label class="checkbox">
                <input type="checkbox" value="remember" ng-model="loginInfo.remember">{{ _('Remember me') }}
            </label>
            <alert ng-repeat="alert in alerts" ng-attr-type="[[ alert.type ]]" close="closeAlert($index)">
                <span ng-bind="alert.msg"></span>
            </alert>
            <button class="btn btn-lg btn-primary btn-block">{{ _('Sign in') }}</button>
        </form>
    </div> <!-- /container -->
{% endblock %}